package com.triones.yjj.entity.bo;

/**
 * @author cww
 * @version 1.0
 * 2024/8/6 16:43
 */
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户资金明细业务对象 tr_member_fund_record
 *
 * @author ruoyi
 * @date 2024-08-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MemberFundRecordBo extends BaseEntity{
    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 客户ID
     */
    @NotNull(message = "客户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long memberId;

    /**
     * 客户微信id
     */
    @NotNull(message = "客户微信id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long memberWxUserId;

    /**
     * 金额
     */
    @NotNull(message = "金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 类型1收入2支出
     */
    @NotNull(message = "类型1收入2支出不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 来源：1佣金2提现3其它
     */
    @NotNull(message = "来源：1佣金2提现3其它不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer source;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sourceId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;
}
